// 进入主页面的route
let indexAdminRoute = {
  path: "index",
  name: "adminIndex",
  redirect: "/banner",
  component: () => import("@/views/index/index.vue"),
  meta: { name: "菜单", showMenu: true },
  children: [
    {
      path: "/banner",
      name: "leadingEndBanner",
      component: () => import("@/views/banner/index.vue"),
      meta: { name: "Banner", icon: "picture", showMenu: true }
    },
    {
      path: "/movie",
      name: "leadingEndMovie",
      component: () => import("@/views/movie/index.vue"),
      meta: { name: "视频中心", icon: "play-circle", showMenu: true },
      children: [
        {
          path: "add",
          name: "movieAdd",
          component: () => import("@/views/movie/add.vue"),
          meta: { name: "新增视频" }
        },
        {
          path: "edit/:id",
          name: "movieEdit",
          component: () => import("@/views/movie/add.vue"),
          meta: { name: "编辑视频" }
        }
      ]
    },
    {
      path: "/info",
      name: "informationList",
      component: () => import("@/views/information/index.vue"),
      meta: { name: "行业资讯", icon: "message", showMenu: true },
      children: [
        {
          path: "add",
          name: "informationListAdd",
          component: () => import("@/views/information/add.vue"),
          meta: { name: "新增资讯" }
        },
        {
          path: "edit/:id",
          name: "informationListEdit",
          component: () => import("@/views/information/add.vue"),
          meta: { name: "修改资讯" }
        }
      ]
    },
    {
      path: "/team",
      name: "projectClassify",
      component: () => import("@/views/team/index.vue"),
      meta: { name: "团队介绍", icon: "user", showMenu: true }
    },
    {
      path: "/project",
      name: "projectList",
      component: () => import("@/views/project/index.vue"),
      meta: { name: "公司项目", icon: "project", showMenu: true },
      children: [
        {
          path: "add",
          name: "addProject",
          component: () => import("@/views/project/add.vue"),
          meta: { name: "新增项目" }
        },
        {
          path: "edit/:id",
          name: "editProject",
          component: () => import("@/views/project/add.vue"),
          meta: { name: "编辑项目" }
        },
        {
          path: "details/:id",
          name: "detailsProject",
          component: () => import("@/views/project/add.vue"),
          meta: { name: "项目详情" }
        }
      ]
    },
    {
      path: "/user",
      name: "authorityUser",
      component: () => import("@/views/user/index.vue"),
      meta: { name: "用户管理", icon: "safety-certificate", showMenu: true },
      children: [
        {
          path: "add",
          name: "authorityUserAdd",
          component: () => import("@/views/user/add.vue"),
          meta: { name: "新增用户" }
        },
        {
          path: "edit/:id",
          name: "authorityUserEdit",
          component: () => import("@/views/user/edit.vue"),
          meta: { name: "编辑用户" }
        }
      ]
    },
    {
      path: "/sys",
      name: "instrumentLogin",
      component: () => import("@/views/instrument/index.vue"),
      meta: { name: "站点配置", icon: "setting", showMenu: true }
    }
  ]
};
export default indexAdminRoute;
